﻿{include file="public/header"}
<title>店长列表</title>
</head>
<body>

<div class="page-container">


    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="80">序号</th>
                <th width="100">昵称</th>
                <th width="100">电话</th>
                <th width="100">状态</th>
                <th width="100">提现金额</th>
                <th width="100">时间</th>
                <th width="100">审核人</th>

            </tr>
            </thead>
            <tbody>
            {volist name='list' id='vo'}
            <tr class="text-c">
                <td>{$vo.xian_id}</td>
                <td>{$vo.username}</td>
                <td>{$vo.mobile}</td>
                <td><?php if($vo['start']==0){?>
                    审核
                    <?php }else{ ?>
                    审核通过<?php }?></td>
                <td>{$vo.qian}</td>
                <td>{:date('Y-m-d H:i:s',$vo.crtime)}</td>
                <td>{$vo.admin_id}</td>



            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="pages" style="float: right">{$list->render()}</div>

    </div>
</div>

{include file="public/footer"}
<script type="text/javascript">
    /**
     * 删除
     */
    $('.del').click(function () {
        var id=$(this).attr('data-id');
        var obj={};
        obj.xian_id=id;
        var src="{:Url('index/Income/tong')}";
        layer.confirm('确认审核通过吗？', function (index) {
            $.ajax({
                type: 'POST',
                url: src,
                dataType: 'json',
                data: obj,
                success: function (data) {
                    var res=JSON.parse(data);
                    if(res.code==200){
                        layer.msg(res.msg, {icon: 1, time: 2000}, function () {
                            setTimeout("window.location.reload()", 1);
                        });
                    }else{
                        layer.msg(res.msg,{icon: 5,time:1000});
                    }

                },
                error: function (data) {
                    console.log(data.msg);
                },
            });
        });
    });



</script>
</body>
</html>